package enums

import (
	"errors"
)

type enum interface {
	String() string
}

func AssertLegal(e enum, msg string) {
	if e.String() == "" {
		panic(errors.New(msg))
	}
}
